<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "sys_role".
 *
 * @property string $id
 * @property string $name
 * @property string $role_desc
 * @property string $remark
 */
class SysRole extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'sys_role';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name'], 'required'],
            [['name', 'role_desc', 'remark'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '角色编号',
            'name' => '角色名称',
            'role_desc' => '角色描述',
            'remark' => '备注',
        ];
    }
}
